package section14;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.control.Button;
import javafx.stage.StageStyle;

public class App14_2 extends Application {
    @Override
    public void start(Stage primary_Stage){
        Button bt=new Button("button1");
        Scene scene=new Scene(bt,300,130);
        primary_Stage.setTitle("主舞台");
        primary_Stage.setScene(scene);
        primary_Stage.show();
        Stage stage1=new Stage(StageStyle.UTILITY);
        stage1.setAlwaysOnTop(true);
        stage1.setTitle("第二舞台");
        Button bt2=new Button("button2");
        stage1.setScene(new Scene(bt2,200,130));
        stage1.show();

    }
}
